<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>akka.dispatch.Future</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link type="text/css" media="screen" rel="stylesheet" href="../../lib/template.css" />
      <script type="text/javascript" src="../../lib/jquery.js"></script>
      <script type="text/javascript" src="../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../lib/template.js"></script>
      <script type="text/javascript" src="../../lib/tools.tooltip.js"></script>
    
        </head>
        <body class="value">
      <div id="definition">
        <a title="Go to companion" href="Future.html"><img src="../../lib/object_to_trait_big.png" /></a>
        <p id="owner"><a name="akka" class="extype" href="../package.html">akka</a>.<a name="akka.dispatch" class="extype" href="package.html">dispatch</a></p>
        <h1><a title="Go to companion" href="Future.html">Future</a></h1>
      </div>

      <h4 class="signature" id="signature">
      <span class="kind">object</span>
      <span class="symbol">
        <span class="name">Future</span>
        
        <span class="result"> extends AnyRef</span>
      </span>
      </h4>
      
          <div class="fullcommenttop" id="comment"><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent">AnyRef, <span name="scala.Any" class="extype">Any</span></div>
        </div></div>
        

      <div id="template">

        <div id="mbrsel">
          <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
          <div id="order">
                <span class="filtertype">Ordering</span>
                <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
              </div>
          <div id="ancestors">
                <span class="filtertype">Inherited</span>
                <ol><li class="hideall out"><span>Hide All</span></li>
                <li class="showall in"><span>Show all</span></li></ol>
                <ol id="linearization"><li name="akka.dispatch.Future" class="in"><span>Future</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
              </div>
          <div id="visbl">
              <span class="filtertype">Visibility</span>
              <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
            </div>
        </div>

        

        

        

        <div class="values members" id="values">
              <h3>Value Members</h3>
              <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
      <a id="!=(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">##</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
      <a id="==(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Future#apply" data-isabs="false">
      <a id="apply[T](⇒ T)(ExecutionContext):Future[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">apply</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="body">body: ⇒ T</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">This method constructs and returns a Future that will eventually hold the result of the execution of the supplied body
The execution is performed by the specified Dispatcher.</p>
    </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">asInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Future#blocking" data-isabs="false">
      <a id="blocking():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">blocking</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Signals that the current thread of execution will potentially engage
an action that will take a non-trivial amount of time, perhaps by using blocking.</p><div class="fullcomment"><div class="comment cmt"><p>Signals that the current thread of execution will potentially engage
an action that will take a non-trivial amount of time, perhaps by using blocking.IO or using a lot of CPU time,
giving the system a chance to spawn new threads, reuse old threads or otherwise,
to prevent starvation and/or unfairness.</p><p>Assures that any Future tasks initiated in the current thread will be
executed asynchronously, including any tasks currently queued to be
executed in the current thread. This is needed if the current task may
block, causing delays in executing the remaining tasks which in some
cases may cause a deadlock.</p><p>Note: Calling 'Await.result(future)' or 'Await.ready(future)' will automatically trigger this method.</p><p>For example, in the following block of code the call to 'latch.open'
might not be executed until after the call to 'latch.await', causing
a deadlock. By adding 'Future.blocking()' the call to 'latch.open'
will instead be dispatched separately from the current block, allowing
it to be run in parallel:
<pre>
val latch = new StandardLatch
val future = Future() map { _ ⇒
  Future.blocking()
  val nested = Future()
  nested foreach (_ ⇒ latch.open)
  latch.await
}
</pre>
</p></div></div>
    </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">clone</span>
        
        <span class="params">()</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">eq</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">equals</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">finalize</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Future#find" data-isabs="false">
      <a id="find[T](Traversable[Future[T]])((T) ⇒ Boolean)(ExecutionContext):Future[Option[T]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">find</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="futures">futures: Traversable[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>)</span><span class="params">(<span name="predicate">predicate: (T) ⇒ <span name="scala.Boolean" class="extype">Boolean</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[<span name="scala.Option" class="extype">Option</span>[T]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Returns a Future that will hold the optional result of the first Future with a result that matches the predicate
</p>
    </li><li visbl="pub" name="akka.dispatch.Future#firstCompletedOf" data-isabs="false">
      <a id="firstCompletedOf[T](Traversable[Future[T]])(ExecutionContext):Future[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">firstCompletedOf</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="futures">futures: Traversable[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Returns a Future to the result of the first future in the list that is completed
</p>
    </li><li visbl="pub" name="akka.dispatch.Future#flow" data-isabs="false">
      <a id="flow[A](⇒ A @util.continuations.package.cps[akka.dispatch.Future[Any]])(ExecutionContext):Future[A]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">flow</span>
        <span class="tparams">[<span name="A">A</span>]</span>
        <span class="params">(<span name="body">body: ⇒ A @util.continuations.package.cps[akka.dispatch.Future[Any]]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[A]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Captures a block that will be transformed into 'Continuation Passing Style' using Scala's Delimited
Continuations plugin.</p><div class="fullcomment"><div class="comment cmt"><p>Captures a block that will be transformed into 'Continuation Passing Style' using Scala's Delimited
Continuations plugin.</p><p>Within the block, the result of a Future may be accessed by calling Future.apply. At that point
execution is suspended with the rest of the block being stored in a continuation until the result
of the Future is available. If an Exception is thrown while processing, it will be contained
within the resulting Future.</p><p>This allows working with Futures in an imperative style without blocking for each result.</p><p>Completing a Future using 'Promise &lt;&lt; Future' will also suspend execution until the
value of the other Future is available.</p><p>The Delimited Continuations compiler plugin must be enabled in order to use this method.
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Future#fold" data-isabs="false">
      <a id="fold[T, R](Traversable[Future[T]])(R)((R, T) ⇒ R)(ExecutionContext):Future[R]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">fold</span>
        <span class="tparams">[<span name="T">T</span>, <span name="R">R</span>]</span>
        <span class="params">(<span name="futures">futures: Traversable[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>)</span><span class="params">(<span name="zero">zero: R</span>)</span><span class="params">(<span name="foldFun">foldFun: (R, T) ⇒ R</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[R]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">A non-blocking fold over the specified futures, with the start value of the given zero.</p><div class="fullcomment"><div class="comment cmt"><p>A non-blocking fold over the specified futures, with the start value of the given zero.
The fold is performed on the thread where the last future is completed,
the result will be the first failure of any of the futures, or any failure in the actual fold,
or the result of the fold.
Example:
<pre>
  val result = Await.result(Future.fold(futures)(0)(_ + _), 5 seconds)
</pre>
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
      <a id="getClass():java.lang.Class[_]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">getClass</span>
        
        <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">hashCode</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">isInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">ne</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notify</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notifyAll</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Future#reduce" data-isabs="false">
      <a id="reduce[T, R&gt;:T](Traversable[Future[T]])((R, T) ⇒ R)(ExecutionContext):Future[R]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">reduce</span>
        <span class="tparams">[<span name="T">T</span>, <span name="R">R &gt;: T</span>]</span>
        <span class="params">(<span name="futures">futures: Traversable[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>)</span><span class="params">(<span name="op">op: (R, T) ⇒ R</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[R]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Initiates a fold over the supplied futures where the fold-zero is the result value of the Future that's completed first
Example:
<pre>
  val result = Await.result(Futures.reduce(futures)(_ + _), 5 seconds)
</pre>
</p>
    </li><li visbl="pub" name="akka.dispatch.Future#sequence" data-isabs="false">
      <a id="sequence[A, M&lt;:Traversable[_]](M[Future[A]])(CanBuildFrom[M[Future[A]], A, M[A]],ExecutionContext):Future[M[A]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">sequence</span>
        <span class="tparams">[<span name="A">A</span>, <span name="M">M<span class="tparams">[<span name="_">_</span>]</span> &lt;: Traversable[_]</span>]</span>
        <span class="params">(<span name="in">in: M[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[A]]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="cbf">cbf: <span name="scala.collection.generic.CanBuildFrom" class="extype">CanBuildFrom</span>[M[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[A]], A, M[A]]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[M[A]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Simple version of Futures.</p><div class="fullcomment"><div class="comment cmt"><p>Simple version of Futures.traverse. Transforms a Traversable[Future[A]] into a Future[Traversable[A]].
Useful for reducing many Futures into a single Future.
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
      <a id="synchronized[T0](⇒ T0):T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">synchronized</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#toString" data-isabs="false">
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">toString</span>
        
        <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Future#traverse" data-isabs="false">
      <a id="traverse[A, B, M&lt;:Traversable[_]](M[A])((A) ⇒ Future[B])(CanBuildFrom[M[A], B, M[B]],ExecutionContext):Future[M[B]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">traverse</span>
        <span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="M">M<span class="tparams">[<span name="_">_</span>]</span> &lt;: Traversable[_]</span>]</span>
        <span class="params">(<span name="in">in: M[A]</span>)</span><span class="params">(<span name="fn">fn: (A) ⇒ <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[B]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="cbf">cbf: <span name="scala.collection.generic.CanBuildFrom" class="extype">CanBuildFrom</span>[M[A], B, M[B]]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[M[B]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Transforms a Traversable[A] into a Future[Traversable[B]] using the provided Function A ⇒ Future[B].</p><div class="fullcomment"><div class="comment cmt"><p>Transforms a Traversable[A] into a Future[Traversable[B]] using the provided Function A ⇒ Future[B].
This is useful for performing a parallel map. For example, to apply a function to all items of a list
in parallel:
<pre>
val myFutureList = Future.traverse(myList)(x ⇒ Future(myFunc(x)))
</pre>
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li></ol>
            </div>

        

        <div name="scala.AnyRef" class="parent">
              <h3>Inherited from AnyRef</h3>
            </div><div name="scala.Any" class="parent">
              <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
            </div>

      </div>

      <div id="tooltip"></div>

    </body>
      </html>